package com.googlecode.mailnet.emf.netmodel.visualization.failure;

import com.googlecode.mailnet.emf.netmodel.visualization.ModelDecorator;
import com.googlecode.mailnet.emf.netmodel.visualization.ShapeDecorator;
import com.googlecode.mailnet.info.ILinkInfo;
import com.googlecode.mailnet.info.INodeInfo;

/**
 * Failure state decorator. Colors links dependantly on links
 * failure status.
 * @author gleb
 */
public class FailureModelDecorator extends ModelDecorator {

	@Override
	public ShapeDecorator getLinkDecorator(ILinkInfo linkInfo) {
		return new FailureLinkDecorator(linkInfo);
	}

	@Override
	public ShapeDecorator getNodeDecorator(INodeInfo nodeInfo) {
		return new FailureNodeDecorator(nodeInfo);
	}
	
}
